package model;

import java.util.List;

public class Player {
//	private Account account;
	private long id;
	private String status;
//	public Account getAccount() {
//		return account;
//	}
//	public void setAccount(Account account) {
//		this.account = account;
//	}
	
	public String getStatus() {
		return status;
	}
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public void setStatus(String status) {
		this.status = status;
	}

	public boolean joinRoom(){
		return false;
	}
	public boolean leaveRoom(){
		return false;
	}
	@Override
	public boolean equals(Object obj) {
		// TODO Auto-generated method stub
		if(obj==null) return false;
		if(obj==this) return true;
		if(obj instanceof Player){
			Player player=(Player) obj;
			if(player.getId()==id) return true;
			return false;
		}
		return false;
	}
	
}
